package Thread;
//java中所有代码都是靠线程运行的，main方法也不例外，
public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main=Thread.currentThread();
        System.out.println("主线程"+main);
        dosome();
    }

    public static void dosome(){
        Thread t=Thread.currentThread();
        System.out.println("运行dosome的线程是"+t);
    }
}
